package com.common.utils;

import com.common.entity.sbxBase.UserNotice;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @Author: 何剑
 * @Date: 2023/3/13
 * @Note:
 **/
@Component
public class PaddingUserNoticeUtil {



    public static   UserNotice padding(String appName,String receiver,String event,String data){
        UserNotice userNotice = new UserNotice();
        userNotice.setOnRead(false);
        userNotice.setServerName(appName);
        userNotice.setSender(appName);
        userNotice.setEvent(event);
        userNotice.setReceiver(receiver);
        userNotice.setData(data);
        userNotice.setCreated(new Date());
        return userNotice;
//        userNotice.setRoleId();
    }
}
